﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
   public  class 引用类型传递
    {
        public string 姓名;


        
        public void RefDemo()
        {
            int age = 1;
            RefDemo2(ref age);
            Console.WriteLine(age);

            string num = "0";
            int num_int = 0;
            int.TryParse(num, out num_int);

        }
        public void RefDemo2(ref int age)
        {
            age+=10;
            
        }
    }
}
